﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UserModels
{
    /// <summary>
    /// 关系表
    /// </summary>
    [Table("AccountRoleModel")]
    public class AccountRoleModel
    {
        /// <summary>
        /// 关系编号
        /// </summary>
        [Key]
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int AccountRoleId { get; set; }
        /// <summary>
        /// 账号编号
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public int AccountId { get; set; }
        /// <summary>
        /// 账号编号
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public int RoleId { get; set; }
    }
}
